package com.lovcreate.shop.api.exception;

import java.util.UUID;

/**
 * @author 高博
 * @version 1.0
 * @Time 2016-12-22 15:57:15
 * @Descrption 异常类基类
 */

public class BaseException extends RuntimeException {

    private String id = UUID.randomUUID().toString().replaceAll("-", "");

    public BaseException() {
        super();
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public String getId() {
        return id;
    }

}
